import request from '@/utils/request'

export const getAllRulesList = () => request.get('parking/rule/list', {params: { page: 1, pageSize: 99999999999 }})
export const getRulesList = data => request.get('parking/rule/list', { params: data })
export const getRuleItem = id => request.get(`parking/rule/${ id }`)
export const delRuleItem = id => request.delete(`/parking/rule/${ id }`)
export const addRuleItem = data => request.post('/parking/rule', data)
export const editRuleItem = data => request.put('/parking/rule', data)
